var a = require("../../@babel/runtime/helpers/defineProperty"), t = getApp().globalData.api;

Page({
    data: {
        delBtnForm: {
            username: !1,
            password: !1
        },
        ruleForm: {
            username: "",
            password: ""
        }
    },
    onLoad: function(a) {},
    bingClose: function(t) {
        console.log(t);
        var e = "ruleForm.".concat(t.currentTarget.dataset.info);
        this.setData(a({}, e, ""));
    },
    tfBegin: function(t) {
        var e = "delBtnForm.".concat(t.currentTarget.dataset.info);
        this.setData(a({}, e, !0));
    },
    tfEnd: function(t) {
        var e = "delBtnForm.".concat(t.currentTarget.dataset.info);
        this.setData(a({}, e, !1));
    },
    bingUserloginInfo: function(t) {
        var e = "ruleForm.".concat(t.currentTarget.dataset.info);
        this.setData(a({}, e, t.detail.value));
    },
    login: function() {
        var a = {
            username: this.data.ruleForm.username,
            password: this.data.ruleForm.password,
            loginSource: getApp().globalData.appInfo.zkSource,
            zkPlat: getApp().globalData.appInfo.zkPlat
        };
        t.postPort("userLogin", a).then(function(a) {
            "SUCCESS" == a.result && wx.switchTab({
                url: "/pages/homepages/homepages"
            });
        });
    }
});